package com.dondedesigns.eh.controller.index;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.dondedesigns.eh.util.EHConstants;
import com.opensymphony.xwork2.ActionSupport;

public class Logout extends ActionSupport implements SessionAware{
	
	private Map session;
	
	@Override
	public String execute() throws Exception {
		session.remove(EHConstants.USER);
		return SUCCESS;
	}

	@Override
	public void setSession(Map session) {
		this.session = session; 
	}

}
